% latex table generated in R 4.4.0 by xtable 1.8-4 package
% Thu Apr 10 09:22:42 2025
\begin{table}[ht]
\centering
\begin{tabular}{rrrrrrr}
  \hline
 & Toomey '10 & Romney '12 & Trump '16 & Toomey '16 & Barletta '18 & Trump '20 \\ 
  \hline
McCain '08 & \cellcolor{gray!110}0.971 & \cellcolor{gray!110}0.977 & \cellcolor{gray!110}0.937 & \cellcolor{gray!110}0.963 & \cellcolor{gray!110}0.937 & \cellcolor{gray!110}0.914 \\ 
  Toomey '10 & 1.000 & \cellcolor{gray!110}0.972 & \cellcolor{gray!110}0.927 & \cellcolor{gray!110}0.965 & \cellcolor{gray!110}0.940 & \cellcolor{gray!110}0.904 \\ 
  Romney '12 & \cellcolor{gray!110}0.972 & 1.000 & \cellcolor{gray!110}0.951 & \cellcolor{gray!110}0.977 & \cellcolor{gray!110}0.954 & \cellcolor{gray!110}0.928 \\ 
  Trump '16 & \cellcolor{gray!110}0.927 & \cellcolor{gray!110}0.951 & 1.000 & \cellcolor{gray!110}0.973 & \cellcolor{gray!110}0.982 & \cellcolor{gray!110}0.986 \\ 
  Toomey '16 & \cellcolor{gray!110}0.965 & \cellcolor{gray!110}0.977 & \cellcolor{gray!110}0.973 & 1.000 & \cellcolor{gray!110}0.973 & \cellcolor{gray!110}0.951 \\ 
  Barletta '18 & \cellcolor{gray!110}0.940 & \cellcolor{gray!110}0.954 & \cellcolor{gray!110}0.982 & \cellcolor{gray!110}0.973 & 1.000 & \cellcolor{gray!110}0.975 \\ 
  Trump '20 & \cellcolor{gray!110}0.904 & \cellcolor{gray!110}0.928 & \cellcolor{gray!110}0.986 & \cellcolor{gray!110}0.951 & \cellcolor{gray!110}0.975 & 1.000 \\ 
   \hline
\end{tabular}
\caption{Over-time correlations between Republican nominee vote shares from 2008 to 2020 in presidential and Senate races in PA (n=8992-9211).} 
\label{f:tab:gen_election_corrs_PA_gop}
\end{table}
